import React from "react";
import { useNavigate } from "react-router-dom";
import { Cell } from "react-vant";

const Info = () => {
  const navigate = useNavigate();
  const city = localStorage.getItem('city') || '上海'
  return (
    <div>
      <Cell
        title={"城市"}
        value={city}
        onClick={() => navigate("/city")}
      ></Cell>
    </div>
  );
};

export default Info;
